// 图标样式
.icon {
  display: flex;
  align-items: center;
  width: 60px;
  font-size: 12px;
  color: #999999;
  & > div {
    width: 16px;
    height: 16px;
    margin-right: 5px;
  }
}

header {
  ul {
    & > li:first-of-type > a {
      color: #fff;
    }
  }
}

.banner {
  width: 1200px;
  height: 320px;
  margin: 0 auto;
  padding: 100px 0 40px;
  .img-box {
    position: relative;
    overflow: hidden;
    ul {
      position: relative;
      width: 100%;
      width: 100%;
      white-space: nowrap;
      font-size: 0;
      height: 100%;
      & > li {
        display: inline-block;
        width: 100%;
        & > img {
          width: 100%;
        }
      }
    }
  }
  .dot {
    position: absolute;
    display: flex;
    bottom: 10px;
    width: 100%;
    & > div.active-dot {
      background-color: #1088f2;
    }
  }
}

.main-top {
  & > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1200px;
    height: 208px;
    margin: 0 auto 174px;
    .main-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 1200px;
      height: 32px;
      h2 {
        font-size: 28px;
      }
      a {
        font-size: 14px;
        margin-right: 18px;
        color: #1890ff;
      }
    }
    .main-hot {
      display: flex;
      justify-content: space-between;
      height: 152px;
      & > .main-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        & > div {
          border-radius: 5px;
          overflow: hidden;
          height: 120px;
          & > img {
            width: 180px;
            height: 120px;
            transition: all 0.3s;
          }
          & > img:hover {
            transform: scale(1.1);
          }
        }
        & > span {
          background-color: #fff;
          font-size: 16px;
        }
      }
    }
  }
}

main {
  width: 100%;
  background-color: #f7f8f9;

  .main-middle {
    width: 100%;
    padding-top: 40px;
    box-sizing: border-box;
    & > .main-content {
      margin-bottom: 40px;
      .main-item > .main-content-item {
        height: 320px;
        margin-right: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
      }
    }
  }
  .main-bottom {
    display: flex;
    padding-bottom: 40px;
    height: 215px;
    & > .main-content {
      display: flex;
      height: 215px;
      overflow: hidden;
      & > .main-item {
        height: 171px;
        & > .main-content-item {
          display: flex;
          flex-direction: column;
          margin-right: 20px;
          transform: translateX(0%);
          transition: all 0.3s;
          cursor: pointer;
          & > img {
            width: 183px;
            height: 122px;
            border-top-left-radius: 3%;
            border-top-right-radius: 3%;
          }
          span {
            height: 49px;
            line-height: 49px;
            background-color: #fff;
            font-size: 14px;
            text-align: center;
          }
        }
        & > .main-content-item:hover > span {
          color: #1088f2;
        }
      }
    }
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1200px;
  height: 363px;
  margin: 0 auto;
  & > .main-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    & > span {
      font-size: 20px;
    }
    & > div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 180px;
      .dot {
        & > div.active-dot {
          background-color: #1088f2;
        }
      }
      a {
        font-size: 14px;
        color: #1088f2;
        white-space: nowrap;
      }
    }
  }

  .main-item {
    display: flex;
    justify-content: space-between;
    height: 320px;
    overflow: hidden;
    & > .main-content-item {
      transform: translateX(0%);
      transition: all 0.3s;
      height: 100%;
      background-color: #fff;
      .img-box {
        width: 285px;
        height: 190px;
        background-color: #ddd;
        & > img {
          width: 285px;
          height: 190px;
        }
      }
      & > img {
        width: 285px;
        height: 190px;
      }
      .main-content-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: auto;
        width: 259px;
        height: 65px;
        h4 {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-size: 14px;
        }
        p {
          color: #999999;
          font-size: 12px;
          span {
            color: #1088f2;
          }
        }
        & > div {
          display: flex;
          height: 16px;
          .eyes {
            @extend .icon;
            & > div {
              background: url(../images/eye.png) no-repeat center/cover;
            }
          }
          .agree {
            @extend .icon;
            & > div {
              background: url(../images/agree.png) no-repeat center/cover;
            }
          }
        }
      }

      .line {
        width: 259px;
        height: 1px;
        background-color: #eeeeee;
        margin: auto;
      }

      .user {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: auto;
        width: 259px;
        height: 24px;
        & > div {
          display: flex;
          align-items: center;
          font-size: 12px;
          & > div {
            width: 24px;
            height: 24px;
            margin-right: 5px;
            border-radius: 50%;
            background: url(../images/user.jpg) no-repeat center/cover;
          }
          span {
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
        time {
          font-size: 12px;
          color: #999999;
        }
      }
    }
  }
}
